package com.ahu.xrq.maker.service.impl;

import com.ahu.xrq.maker.dao.AreaDao;
import com.ahu.xrq.maker.entity.Area;
import com.ahu.xrq.maker.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author XuRuiQing
 * @date 2018/5/3 21:59
 */
@Service("AreaService")
public class AreaServiceImpl implements AreaService{
	private final AreaDao areaDao;

	@Autowired
	public AreaServiceImpl(AreaDao areaDao) {
		this.areaDao = areaDao;
	}

	@Override
	public List<Area> getAreaList() {
		return areaDao.queryArea();
	}
}
